﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Petaframe.DataAccess
{

    /// <summary>
    /// Veritabanı için select komutunu oluşturur.
    /// </summary>
    internal class SelectCommandBuilder : CommandStringBuilderBase, ICommandStringBuilder
    {           

        public ICommandStringBuilder CommandString(string text)
        {
            _sqlQuery.Append(text);
            return this;
        }

        public ICommandStringBuilder CommandString(TableInfo table)
        {
            
            return this;
        }


        /// <summary>
        /// Oluşturulan sql komutunu döndürür.
        /// </summary>
        /// <returns>Sql command string</returns>
        public string ToSqlCommandString()
        {
            return _sqlQuery.ToString();
        }
    }
}
